package com.authorization.project.authorization.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.authorization.framework.aspectj.lang.annotation.Excel;
import com.authorization.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 套餐对象 package
 * 
 * @author 李晓雷
 * @date 2020-04-21
 */
public class PackageEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 产品主键 */
    @Excel(name = "产品主键")
    private Long productId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /**-------传值----------**/

    /**列表-模块Id集合**/
    private Long [] moduleIds;

    /**列表-模块集合**/
    private List<Module> moduleList;

    /**客户编号**/
    private String userid;

    /**历史状态**/
    private String histstate;

    /**当前套餐ID**/
    private String packageId;

    /**历史授权ID**/
    private String historyId;

    /**选中模块集合**/
    private List<Long> checkedModuleIdList;

    public String getHistoryId() {
        return historyId;
    }

    public void setHistoryId(String historyId) {
        this.historyId = historyId;
    }

    public String getPackageId() {
        return packageId;
    }

    public void setPackageId(String packageId) {
        this.packageId = packageId;
    }

    public String getHiststate() {
        return histstate;
    }

    public void setHiststate(String histstate) {
        this.histstate = histstate;
    }

    public List<Long> getCheckedModuleIdList() {
        return checkedModuleIdList;
    }

    public void setCheckedModuleIdList(List<Long> checkedModuleIdList) {
        this.checkedModuleIdList = checkedModuleIdList;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public List<Module> getModuleList() {
        return moduleList;
    }

    public void setModuleList(List<Module> moduleList) {
        this.moduleList = moduleList;
    }

    public Long[] getModuleIds() {
        return moduleIds;
    }

    public void setModuleIds(Long [] moduleIds) {
        this.moduleIds = moduleIds;
    }
    /** 产品名称 */
    private String productName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("productId", getProductId())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
